import 'package:flutter/material.dart';

class ToolTipDemo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('tool tips demo')),
      body: Center(
        child: Tooltip(
          message: '不要碰我',
          child: Row(
            mainAxisAlignment: MainAxisAlignment.center,
            children: <Widget>[
              Icon(Icons.all_inclusive),
              Text('长按 会自动弹出相应的操作提示')
            ],
          ),
        ),
      ),
    );
  }
}
